
package Graphics;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Rectangle;

/**
 *
 * @author mhfowler
 */
public class MyRectangle extends Rectangle {

    Color col;
    Rectangle r;

    public MyRectangle(int x, int y, int h, int w, Color c) {
        col = c;
        r = new Rectangle();
        r.setBounds(x, y, w, h);
    }


    public void draw(Graphics2D brush) {
        brush.setColor(col);
        brush.draw(r);
    }


}
